using System;
using System.Collections;

namespace PMG.model
{
	#region QUESTIONTYPE

	/// <summary>
	/// QUESTIONTYPE object for NHibernate mapped table 'QUESTIONTYPE'.
	/// </summary>
	[Serializable]
	public class QUESTIONTYPE
	{
		#region Member Variables
		
		protected int _id;
		protected string _eNAME;
		protected string _cNAME;
		protected string _vAL;
		protected int _oRDERX;

		#endregion

		#region Constructors

		public QUESTIONTYPE() { }

		public QUESTIONTYPE( string eNAME, string cNAME, string vAL, int oRDERX )
		{
			this._eNAME = eNAME;
			this._cNAME = cNAME;
			this._vAL = vAL;
			this._oRDERX = oRDERX;
		}

		#endregion

		#region Public Properties

		public int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public string ENAME
		{
			get { return _eNAME; }
			set
			{
				if ( value != null && value.Length > 100)
					throw new ArgumentOutOfRangeException("Invalid value for ENAME", value, value.ToString());
				_eNAME = value;
			}
		}

		public string CNAME
		{
			get { return _cNAME; }
			set
			{
				if ( value != null && value.Length > 100)
					throw new ArgumentOutOfRangeException("Invalid value for CNAME", value, value.ToString());
				_cNAME = value;
			}
		}

		public string VAL
		{
			get { return _vAL; }
			set
			{
				if ( value != null && value.Length > 100)
					throw new ArgumentOutOfRangeException("Invalid value for VAL", value, value.ToString());
				_vAL = value;
			}
		}

		public int ORDERX
		{
			get { return _oRDERX; }
			set { _oRDERX = value; }
		}

		

		#endregion
	}
	#endregion
}